import axios from '../utils/http'


// 视频积分列表
export const welfareVideoIntegralList = (params) =>
    axios({
        url: '/v1/manager/welfare/video/integral',
        method: 'get',
        params
    })

// 视频积分列表 新增    
export const welfareVideoIntegralListAdd = (data) =>
    axios({
        url: '/v1/manager/welfare/video/integral',
        method: 'post',
        data
    })

// 视频积分列表 删除
export const welfareVideoIntegralListDelete = (params) =>
    axios({
        url: `/v1/manager/welfare/video/integral/${params}`,
        method: 'DELETE',
    })

//--------------------------
// 饭点补贴列表
export const welfareChowtimeList = (params) =>
    axios({
        url: '/v1/manager/chowtime/welfare',
        method: 'get',
        params
    })

// 饭点补贴新增修改
export const welfareChowtimeListAdd = (data) =>
    axios({
        url: '/v1/manager/chowtime/welfare',
        method: 'post',
        data
    })
//-------------------------
// 每日拉新列表
export const welfarePeopleList = (params) =>
    axios({
        url: '/v1/manager/people/welfare',
        method: 'get',
        params
    })

// 每日拉新列表新增修改
export const welfarePeopleListAdd = (data) =>
    axios({
        url: '/v1/manager/people/welfare',
        method: 'post',
        data
    })

// 每日拉新列表 删除
export const welfarePeopleListDelete = (params) =>
    axios({
        url: `/v1/manager/people/welfare/${params}`,
        method: 'DELETE',
    })

//-----------------------------------------
// 奖品列表
export const welfareLuckyList = (params) =>
    axios({
        url: '/v1/manager/lucky/welfare',
        method: 'get',
        params
    })


// 奖品详情
export const welfareLuckyListId = (params) =>
    axios({
        url: `/v1/manager/lucky/welfare/${params}`,
        method: 'get',
    })

// 奖品新增修改
export const welfareLuckyListAdd = (data) =>
    axios({
        url: '/v1/manager/lucky/welfare',
        method: 'post',
        data
    })

// 奖品新增修改 删除
export const welfareLuckyListDelete = (params) =>
    axios({
        url: `/v1/manager/lucky/welfare/${params}`,
        method: 'DELETE',
    })

// 中奖列表
export const welfarelogLuckyList = (params) =>
    axios({
        url: '/v1/manager/log/lucky/welfare',
        method: 'get',
        params
    })

// 中奖核销
export const welfarelogLuckyListPut = (params) =>
    axios({
        url: `/v1/manager/log/lucky/welfare/${params}`,
        method: 'put',
    })
//-----------------------------------------
// 领福利分类列表
export const welfareClassifyGoodList = (params) =>
    axios({
        url: '/v1/manager/welfare/classify/good/welfare',
        method: 'get',
        params
    })

// 领福利分类列表 新增
export const welfareClassifyGoodListAdd = (data) =>
    axios({
        url: `/v1/manager/welfare/classify/good/welfare`,
        method: 'post',
        data
    })

// 领福利分类列表 删除
export const welfareClassifyGoodListDelete = (params) =>
    axios({
        url: `/v1/manager/welfare/classify/good/welfare/${params}`,
        method: 'DELETE',
    })

// 领福利商品列表
export const welfareGoodList = (params) =>
    axios({
        url: '/v1/manager/welfare/good/welfare',
        method: 'get',
        params
    })

// 领福利商品列表 详情
export const welfareGoodListId = (params) =>
    axios({
        url: `/v1/manager/welfare/good/welfare/${params}`,
        method: 'get',
    })


// 领福利商品新增修改
export const welfareGoodListAdd = (data) =>
    axios({
        url: `/v1/manager/welfare/good/welfare`,
        method: 'post',
        data
    })



// 领福利商品列表 删除
export const welfareGoodListDelete = (params) =>
    axios({
        url: `/v1/manager/welfare/good/welfare/${params}`,
        method: 'DELETE',
    })